package com.itheima.mapper;

import com.itheima.entity.Advimg;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdvimgMapper {
    List<Advimg> getPageContent(String advposdesc, String advimgpos);

    void addAdvimg(Advimg adv);

    Advimg rowInfoAdvpos(Integer id);

    @Delete("delete from ydd_advimg where id =#{id}")
    void deleteAdvimg(Integer id);

    void updateAdvimg(Advimg adv);
}
